.class Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;
.super Ljava/lang/Object;
.source "ChangeCodeActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->commitData()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    .line 174
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 12

    .prologue
    .line 180
    iget-object v9, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v9}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v9

    const-string v10, "userInfo"

    const/4 v11, 0x0

    invoke-virtual {v9, v10, v11}, Lcom/example/m6wmr/ChangeCodeActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 181
    .local v5, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v9, "uid"

    const-string v10, ""

    invoke-interface {v5, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 182
    .local v7, "uid":Ljava/lang/String;
    const-string v9, "pass"

    const-string v10, ""

    invoke-interface {v5, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 183
    .local v4, "pwd":Ljava/lang/String;
    const-string v9, "phone"

    const-string v10, ""

    invoke-interface {v5, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 185
    .local v3, "phone":Ljava/lang/String;
    new-instance v9, Ljava/lang/StringBuilder;

    iget-object v10, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v10}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v10

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity;->m:Lmyapp/MyApp;
    invoke-static {v10}, Lcom/example/m6wmr/ChangeCodeActivity;->access$1(Lcom/example/m6wmr/ChangeCodeActivity;)Lmyapp/MyApp;

    move-result-object v10

    invoke-virtual {v10}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, "/index.php?ctrl=app&source=1&action=modify"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 186
    const-string v10, "&datatype=json&uid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&pwd="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&uname="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&phone="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 187
    invoke-virtual {v9, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&oldpwd="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v10}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v10

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity;->nowcode:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ChangeCodeActivity;->access$2(Lcom/example/m6wmr/ChangeCodeActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&newpwd="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v10}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v10

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity;->newcode:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ChangeCodeActivity;->access$3(Lcom/example/m6wmr/ChangeCodeActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&surepwd="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v10}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v10

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity;->overcode:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ChangeCodeActivity;->access$4(Lcom/example/m6wmr/ChangeCodeActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 185
    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 188
    .local v8, "url":Ljava/lang/String;
    const-string v9, "commitdata-----------"

    invoke-static {v9, v8}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 189
    iget-object v9, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v9}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v9

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity;->m:Lmyapp/MyApp;
    invoke-static {v9}, Lcom/example/m6wmr/ChangeCodeActivity;->access$1(Lcom/example/m6wmr/ChangeCodeActivity;)Lmyapp/MyApp;

    move-result-object v9

    invoke-static {v8, v9}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v6

    .line 191
    .local v6, "str":Ljava/lang/String;
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 193
    .local v2, "msg":Landroid/os/Message;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 195
    .local v1, "jsonObject":Lorg/json/JSONObject;
    const-string v9, "error"

    invoke-virtual {v1, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "true"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 197
    const-string v9, "msg"

    invoke-virtual {v1, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 198
    const/4 v9, 0x1

    iput v9, v2, Landroid/os/Message;->arg1:I

    .line 199
    iget-object v9, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v9}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v9

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ChangeCodeActivity;->access$5(Lcom/example/m6wmr/ChangeCodeActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 222
    .end local v1    # "jsonObject":Lorg/json/JSONObject;
    :cond_0
    :goto_0
    return-void

    .line 204
    .restart local v1    # "jsonObject":Lorg/json/JSONObject;
    :cond_1
    const-string v9, "msg"

    invoke-virtual {v1, v9}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_0

    .line 208
    const-string v9, "error"

    invoke-virtual {v1, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "false"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_0

    .line 209
    invoke-interface {v5}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "pass"

    iget-object v11, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v11}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v11

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity;->overcode:Ljava/lang/String;
    invoke-static {v11}, Lcom/example/m6wmr/ChangeCodeActivity;->access$4(Lcom/example/m6wmr/ChangeCodeActivity;)Ljava/lang/String;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 210
    const/4 v9, 0x3

    iput v9, v2, Landroid/os/Message;->arg1:I

    .line 211
    iget-object v9, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v9}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v9

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ChangeCodeActivity;->access$5(Lcom/example/m6wmr/ChangeCodeActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 216
    .end local v1    # "jsonObject":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 217
    .local v0, "e":Lorg/json/JSONException;
    const/4 v9, 0x2

    iput v9, v2, Landroid/os/Message;->arg1:I

    .line 218
    iget-object v9, p0, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener$1;->this$1:Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->this$0:Lcom/example/m6wmr/ChangeCodeActivity;
    invoke-static {v9}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;->access$1(Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)Lcom/example/m6wmr/ChangeCodeActivity;

    move-result-object v9

    # getter for: Lcom/example/m6wmr/ChangeCodeActivity;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/m6wmr/ChangeCodeActivity;->access$5(Lcom/example/m6wmr/ChangeCodeActivity;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 220
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
